# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
_pkgname=django-model-utils
pkgname="py3-$_pkgname"
pkgver=4.1.1
pkgrel=1
pkgdesc="Django model mixins and utilities"
url="https://github.com/jazzband/django-model-utils"
arch="noarch"
license="BSD-3-Clause"
depends="
	py3-django
"
makedepends="py3-setuptools_scm"
checkdepends="
	py3-pytest
	py3-pytest-django
	py3-psycopg2
	py3-pytest-cov
"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
options="!check" # requires py3-pytest-django
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
38cf86cf6b48b6671b7af4b2d9eebe4aa7df4d039d090811d4f2f54cdd2d2be32b6182c7d4a380b68f61027adf7dc679f0e88bac296b62b133ae82cf020dd37b  django-model-utils-4.1.1.tar.gz
"
